package com.cb.admin.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.cb.admin.domain.RoleInfo;


public interface IRoleInfoService {
	
	RoleInfo queryById(int id);
    
   	List<RoleInfo> getListAll();
    
	int queryByName(String name);
    
	List<RoleInfo> query(RoleInfo role);

	int querySize(RoleInfo role);
    
	@Transactional
    public int insert( RoleInfo roleInfo);
	
    void update( RoleInfo roleInfo);
    
    void deleteById(int id);
}
